﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace GGJ.Sprites
{
    public abstract class Ennemy
    {


        protected Texture2D texture;

        protected Rectangle destination;

        public Ennemy(Texture2D texture)
        {
            this.texture = texture;
        }

        public Rectangle GetDestination()
        {
            return destination;
        }

        public bool isOutOfGame()
        {
            return ((destination.X + destination.Width < 0) || (destination.Y > 600));
        }

        abstract public void Update(GameTime gameTime, Flies flies,KilledFlies killedFlies,float speed,bool isSlowMotion);

        abstract public void Draw(SpriteBatch spriteBatch);
    }
}
